public function ConfigEntityBase::get in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::get()
- 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::get()
Returns the value of a property.
Parameters
string $property_name: The name of the property that should be returned.
Return value
mixed The property if it exists, or NULL otherwise.
Overrides ConfigEntityInterface::get
16 calls to ConfigEntityBase::get()
- Block::getPluginCollection in core/
modules/ block/ src/ Entity/ Block.php - Encapsulates the creation of the block's LazyPluginCollection.
- Block::getVisibilityConditions in core/
modules/ block/ src/ Entity/ Block.php - Gets conditions for this block.
- Block::label in core/
modules/ block/ src/ Entity/ Block.php - Gets the label of the entity.
- ConfigEntityBase::toArray in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php - Gets an array of all property values.
- EntityDisplayBase::getMode in core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php - Gets the view or form mode to be displayed.
File
- core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php, line 153
Class
Namespace
Drupal\Core\Config\EntityCode
public function get($property_name) {
return $this->{$property_name} ?? NULL;
}