function MysqlServiceProvider::register
Overrides ServiceProviderBase::register
File
-
core/
modules/ mysql/ src/ MysqlServiceProvider.php, line 17
Class
- MysqlServiceProvider
- Registers the 'mysql.views.cast_sql' service when views is installed.
Namespace
Drupal\mysqlCode
public function register(ContainerBuilder $container) : void {
if (isset($container->getParameter('container.modules')['views'])) {
$container->register('mysql.views.cast_sql', MysqlCastSql::class)
->setPublic(FALSE);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.