You are here

public static property Twitter::$validationRegexp in Media entity Twitter 8

List of validation regular expressions.

Type: array

File

src/Plugin/MediaEntity/Type/Twitter.php, line 78

Class

Twitter
Provides media type plugin for Twitter.

Namespace

Drupal\media_entity_twitter\Plugin\MediaEntity\Type

Code

public static $validationRegexp = array(
  '@((http|https):){0,1}//(www\\.){0,1}twitter\\.com/(?<user>[a-z0-9_-]+)/(status(es){0,1})/(?<id>[\\d]+)@i' => 'id',
);