Skip to content

RelationDeletionBlocker ​

Type
Class
Namespace
craft\elements\deletionblockers
Inherits
craft\elements\deletionblockers\RelationDeletionBlocker » craft\elements\deletionblockers\BaseDeletionBlocker » yii\base\BaseObject
Implements
craft\elements\deletionblockers\DeletionBlockerInterface, yii\base\Configurable
Since
5.10.0

Class RelationDeletionBlocker

View source

Public Properties ​

PropertyDescription
actions
details
elementIndexSettings
summary

actions ​

Default value
null
Access
Read-only

View source

details ​

Default value
null
Access
Read-only

View source

elementIndexSettings ​

Default value
[]

View source

summary ​

Default value
null
Access
Read-only

View source

Protected Properties ​

PropertyDescription
elements
hardDelete
relationCount
sourceElementType

relationCount ​

Default value
null

View source

sourceElementType ​

Default value
null

View source

Public Methods ​

MethodDescription
__call()Calls the named method which is not a class method.
__construct()Constructor
__get()Returns the value of an object property.
__isset()Checks if a property is set, i.e. defined and not null.
__set()Sets value of an object property.
__unset()Sets an object property to null.
canGetProperty()Returns a value indicating whether a property can be read.
canSetProperty()Returns a value indicating whether a property can be set.
className()Returns the fully qualified name of this class.
getActions()
getDetails()
getSummary()
hasMethod()Returns a value indicating whether a method is defined.
hasProperty()Returns a value indicating whether a property is defined.
init()
isActive()

__construct() ​

Constructor

View source

Arguments ​

  • $sourceElementType (class-string<\craft\base\ElementInterface>)
  • $elements
  • $hardDelete
  • $config

getActions() ​

View source

getDetails() ​

View source

getSummary() ​

View source

init() ​

View source

isActive() ​

View source