You are here

class Author in Zircon Profile 8

Same name in this branch
  1. 8 vendor/sebastian/comparator/tests/_files/Author.php \SebastianBergmann\Comparator\Author
  2. 8 vendor/phpunit/phpunit/tests/_files/Author.php \Author
  3. 8 vendor/zendframework/zend-feed/src/Reader/Collection/Author.php \Zend\Feed\Reader\Collection\Author
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Collection/Author.php \Zend\Feed\Reader\Collection\Author

Hierarchy

Expanded class hierarchy of Author

14 string references to 'Author'
CommentAdminOverview::buildForm in core/modules/comment/src/Form/CommentAdminOverview.php
Form constructor for the comment overview administration form.
CommentViewsData::getViewsData in core/modules/comment/src/CommentViewsData.php
Returns views data for the entity type.
comment_entity_extra_field_info in core/modules/comment/comment.module
Implements hook_entity_extra_field_info().
comment_token_info in core/modules/comment/comment.tokens.inc
Implements hook_token_info().
hook_token_info in core/lib/Drupal/Core/Utility/token.api.php
Provide information about available placeholder tokens and token types.

... See full list

File

vendor/zendframework/zend-feed/src/Reader/Collection/Author.php, line 12

Namespace

Zend\Feed\Reader\Collection
View source
class Author extends AbstractCollection {

  /**
   * Return a simple array of the most relevant slice of
   * the author values, i.e. all author names.
   *
   * @return array
   */
  public function getValues() {
    $authors = [];
    foreach ($this
      ->getIterator() as $element) {
      $authors[] = $element['name'];
    }
    return array_unique($authors);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Author::getValues public function Return a simple array of the most relevant slice of the author values, i.e. all author names. Overrides AbstractCollection::getValues