StageBase::COMPOSER_PLATFORM_PACKAGE_REGEX

The regular expression to check if a package name is a platform package.

See also

\Composer\Repository\PlatformRepository::PLATFORM_PACKAGE_REGEX

::validateRequirements()

File

core/modules/package_manager/src/StageBase.php, line 130

Class

StageBase
Creates and manages a stage directory in which to install or update code.

Namespace

Drupal\package_manager

Code

private const COMPOSER_PLATFORM_PACKAGE_REGEX = '{^(?:php(?:-64bit|-ipv6|-zts|-debug)?|hhvm|(?:ext|lib)-[a-z0-9](?:[_.-]?[a-z0-9]+)*|composer(?:-(?:plugin|runtime)-api)?)$}iD';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.