public function KanbanLog::getEntityObject in Content Planner 8
Gets the entity loaded based on id and type.
Return value
\Drupal\Core\Entity\ContentEntityInterface|bool The content entity if exists, FALSE otherwise.
Overrides KanbanLogInterface::getEntityObject
File
- modules/
content_kanban/ src/ Entity/ KanbanLog.php, line 175
Class
- KanbanLog
- Defines the Kanban Log entity.
Namespace
Drupal\content_kanban\EntityCode
public function getEntityObject() {
$entityType = \Drupal::entityTypeManager()
->getStorage($this
->getType());
if (!empty($this
->getEntityId())) {
return $entityType
->load($this
->getEntityId());
}
return FALSE;
}