public static property Instagram::$validationRegexp in Media entity Instagram 8.2
Same name and namespace in other branches
- 3.x src/Plugin/media/Source/Instagram.php \Drupal\media_entity_instagram\Plugin\media\Source\Instagram::validationRegexp
List of validation regular expressions.
Type: array
File
- src/
Plugin/ media/ Source/ Instagram.php, line 103
Class
- Provides media type plugin for Instagram.
Namespace
Drupal\media_entity_instagram\Plugin\media\SourceCode
public static $validationRegexp = [
'@((http|https):){0,1}//(www\\.){0,1}instagram\\.com/p/(?<shortcode>[a-z0-9_-]+)@i' => 'shortcode',
'@((http|https):){0,1}//(www\\.){0,1}instagr\\.am/p/(?<shortcode>[a-z0-9_-]+)@i' => 'shortcode',
'@((http|https):){0,1}//(www\\.){0,1}instagram\\.com/tv/(?<shortcode>[a-z0-9_-]+)@i' => 'shortcode',
'@((http|https):){0,1}//(www\\.){0,1}instagr\\.am/tv/(?<shortcode>[a-z0-9_-]+)@i' => 'shortcode',
];