DirectoryWithMetadataDiscovery::PLUGIN_ID_REGEX

Allowed characters of plugin ID.

This discovery has the particularity of searching for plugin IDs in filenames.

File

core/lib/Drupal/Core/Plugin/Discovery/DirectoryWithMetadataDiscovery.php, line 22

Class

DirectoryWithMetadataDiscovery
Does the actual finding of the directories with metadata files.

Namespace

Drupal\Core\Plugin\Discovery

Code

const PLUGIN_ID_REGEX = '([a-z0-9._-])+';

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