Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Author.php

function Author::asString

File

vendor/phar-io/manifest/src/values/Author.php, line 27

Class

Author

Namespace

PharIo\Manifest

Code

public function asString() : string {
    if (!$this->hasEmail()) {
        return $this->name;
    }
    return sprintf('%s <%s>', $this->name, $this->email
        ->asString());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal