public function Block::get

Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::get();

Overrides ConfigEntityBase::get

2 calls to Block::get()
Block::getExportProperties in drupal/core/modules/block/lib/Drupal/block/Plugin/Core/Entity/Block.php
Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::getExportProperties();
Block::label in drupal/core/modules/block/lib/Drupal/block/Plugin/Core/Entity/Block.php
Overrides \Drupal\Core\Entity\Entity::label();

File

drupal/core/modules/block/lib/Drupal/block/Plugin/Core/Entity/Block.php, line 139
Contains \Drupal\block\Plugin\Core\Entity\Block.

Class

Block
Defines a Block configuration entity class.

Namespace

Drupal\block\Plugin\Core\Entity

Code

public function get($property_name, $langcode = NULL) {

  // The theme is stored in the entity ID.
  $value = parent::get($property_name, $langcode);
  if ($property_name == 'theme' && !$value) {
    list($value) = explode('.', $this
      ->id());
  }
  return $value;
}