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.
Public Properties ​
| Property | Description |
|---|---|
| actions | |
| details | |
| summary |
details ​
- Default value
null- Access
- Read-only
Protected Properties ​
| Property | Description |
|---|---|
| elements | |
| hardDelete |
elements ​
- Default value
null
hardDelete ​
- Default value
null
Public Methods ​
| Method | Description |
|---|---|
| __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
Arguments ​
$elements$hardDelete$config