You are here

public function CacheflushEntity::setData in CacheFlush 8

File

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

Class

CacheflushEntity
Defines the Cacheflush entity.

Namespace

Drupal\cacheflush_entity\Entity

Code

public function setData(array $data) {
  $this
    ->set('data', serialize($data));
  return $this;
}