You are here

public function ContentHubFilter::getAuthor in Acquia Content Hub 8

Returns the Author name (User account name).

Return value

string The user account name.

Overrides ContentHubFilterInterface::getAuthor

File

acquia_contenthub_subscriber/src/Entity/ContentHubFilter.php, line 185

Class

ContentHubFilter
Defines the ContentHubFilter entity.

Namespace

Drupal\acquia_contenthub_subscriber\Entity

Code

public function getAuthor() {
  $user = User::load($this->author);
  return $user
    ->getAccountName();
}