You are here

public function CacheflushEntity::getData in CacheFlush 8

File

modules/cacheflush_entity/src/Entity/CacheflushEntity.php, line 76

Class

CacheflushEntity
Defines the Cacheflush entity.

Namespace

Drupal\cacheflush_entity\Entity

Code

public function getData() {
  $data = $this
    ->get('data')
    ->getValue();
  return isset($data[0]) ? $data[0] : $data;
}