You are here

public function EckEntityType::hasAuthorField in Entity Construction Kit (ECK) 8

Determines if the entity type has an 'author' field.

Return value

bool True if it has one.

Overrides EckEntityTypeInterface::hasAuthorField

File

src/Entity/EckEntityType.php, line 213

Class

EckEntityType
Defines the ECK Entity Type config entities.

Namespace

Drupal\eck\Entity

Code

public function hasAuthorField() {
  return isset($this->uid) && $this->uid;
}