public function ServiceResource::hasServicePlugin in Services 9.0.x
Same name and namespace in other branches
- 8.4 src/Entity/ServiceResource.php \Drupal\services\Entity\ServiceResource::hasServicePlugin()
Has a service plugin definition.
Return value
bool TRUE if a service plugin exists; otherwise FALSE.
2 calls to ServiceResource::hasServicePlugin()
- ServiceResource::createServicePluginInstance in src/
Entity/ ServiceResource.php - Create service plugin instance.
- ServiceResource::getServicePlugin in src/
Entity/ ServiceResource.php - Get service plugin definition.
File
- src/
Entity/ ServiceResource.php, line 171
Class
- ServiceResource
- Defines service resource entity.
Namespace
Drupal\services\EntityCode
public function hasServicePlugin() {
if (!isset($this->service_plugin_id)) {
return FALSE;
}
return $this
->serviceDefinition()
->hasDefinition($this->service_plugin_id);
}