- Issue created by @tgauges
- Merge request !34Issue #3494271: Use new static instead of new self in ContainerFactoryPluginInterface::create → (Open) created by tgauges
The static
\Drupal\authorization_drupal_roles\Plugin\authorization\Consumer\DrupalRolesConsumer::create
\Drupal\authorization\Form\AuthorizationProfileAddForm::create
\Drupal\authorization\Form\AuthorizationProfileEditForm::create
functions use new self
instead of new static
to create an instance of the class.
A new plugin class which extends one of these classes will never be instantiated if it does not override the create
function because with new self
only the parent class will be instantiated.
\Drupal\authorization_drupal_roles\Plugin\authorization\Consumer\DrupalRolesConsumer
without overriding create
Use new static
instead of new self
.
There are no user interface changes.
The mentioned classes become extendable without overriding the create
function.
There are no data model changes.
Active
1.0
Code