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

Breadcrumb

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

function Link::getPrettyConstraint

Throws

\UnexpectedValueException If no pretty constraint was provided

File

vendor/composer/composer/src/Composer/Package/Link.php, line 122

Class

Link
Represents a link between two packages, represented by their names

Namespace

Composer\Package

Code

public function getPrettyConstraint() : string {
    if (null === $this->prettyConstraint) {
        throw new \UnexpectedValueException(sprintf('Link %s has been misconfigured and had no prettyConstraint given.', $this));
    }
    return $this->prettyConstraint;
}

API Navigation

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