function ConfigEntityBase::get

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::get()
  2. 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::get()
  3. 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::get()

Overrides ConfigEntityInterface::get

15 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
Block::label in core/modules/block/src/Entity/Block.php
ConfigEntityBase::toArray in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
EntityDisplayBase::getMode in core/lib/Drupal/Core/Entity/EntityDisplayBase.php

... See full list

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 156

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function get($property_name) {
    return $this->{$property_name} ?? NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.