Skip to content

BaseDeletionBlocker ​

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

BaseDeletionBlocker defines a base implementation for element deletion blockers.

View source

Public Properties ​

PropertyDescription
actions
details
summary

details ​

Default value
null
Access
Read-only

View source

Protected Properties ​

PropertyDescription
elements
hardDelete

elements ​

Default value
null

View source

hardDelete ​

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()Returns an array of action buttons that can be taken to resolve the blocker.
getDetails()
getSummary()Returns a text summary of the blocker.
hasMethod()Returns a value indicating whether a method is defined.
hasProperty()Returns a value indicating whether a property is defined.
init()Initializes the object.
isActive()Returns whether the blocker should be shown.

__construct() ​

Constructor

View source

Arguments ​

  • $elements
  • $hardDelete
  • $config

getDetails() ​

View source