You are here

private function EntityBlockBlock::loadField in Entityblock 8

Helper function to load the field of this entityblock.

2 calls to EntityBlockBlock::loadField()
EntityBlockBlock::loadEntity in src/Plugin/Block/EntityBlockBlock.php
Helper function to load the entity of this entityblock.
EntityBlockBlock::loadFieldValue in src/Plugin/Block/EntityBlockBlock.php
Helper function to load the field value for this entityblock.

File

src/Plugin/Block/EntityBlockBlock.php, line 160
Contains \Drupal\entityblock\Plugin\Block\EntityBlockBlock.

Class

EntityBlockBlock
Provides an entityblock block.

Namespace

Drupal\entityblock\Plugin\Block

Code

private function loadField() {
  $key = $this
    ->getDerivativeId();
  list($field_uuid, $entity_uuid, $delta) = explode('|', $key);
  return $this->entityRepository
    ->loadEntityByUuid('field_storage_config', $field_uuid);
}