public function ServiceResource::getServicePlugin in Services 9.0.x
Same name and namespace in other branches
- 8.4 src/Entity/ServiceResource.php \Drupal\services\Entity\ServiceResource::getServicePlugin()
Get service plugin definition.
Return value
\Drupal\Component\Plugin\PluginManagerInterface A service plugin definition.
1 call to ServiceResource::getServicePlugin()
- ServiceResource::label in src/
Entity/ ServiceResource.php - Gets the label of the entity.
File
- src/
Entity/ ServiceResource.php, line 140
Class
- ServiceResource
- Defines service resource entity.
Namespace
Drupal\services\EntityCode
public function getServicePlugin() {
if (!$this
->hasServicePlugin()) {
return FALSE;
}
return $this
->serviceDefinition()
->getDefinition($this->service_plugin_id);
}