BlockElementInterface
- Type
- Interface
- Namespace
- craft\base
- Implemented by
- craft\elements\Address, craft\elements\MatrixBlock
- Since
- 3.2.0
BlockElementInterface defines the common interface to be implemented by “block element” classes.
Block elements are elements that are owned by a parent element.
Public Methods
Method | Description |
---|---|
getOwner() | Returns the owner element, if the element has one. |
getOwner()
Returns the owner element, if the element has one.
Returns
craft\base\ElementInterface, null
Throws
- yii\base\InvalidConfigException
if the element is misconfigured