public static function SmsUserMenuLink::create in SMS Framework 8
Same name and namespace in other branches
- 2.x modules/sms_user/src/Plugin/Derivative/SmsUserMenuLink.php \Drupal\sms_user\Plugin\Derivative\SmsUserMenuLink::create()
- 2.1.x modules/sms_user/src/Plugin/Derivative/SmsUserMenuLink.php \Drupal\sms_user\Plugin\Derivative\SmsUserMenuLink::create()
Creates a new class instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.
string $base_plugin_id: The base plugin ID for the plugin ID.
Return value
static Returns an instance of this fetcher.
Overrides ContainerDeriverInterface::create
File
- modules/
sms_user/ src/ Plugin/ Derivative/ SmsUserMenuLink.php, line 37
Class
- SmsUserMenuLink
- Provides dynamic menu links for SMS User.
Namespace
Drupal\sms_user\Plugin\DerivativeCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('sms.phone_number.verification'));
}