->
condition('target_entity_type_id',
$entity->
getEntityTypeId()) ->
condition('target_entity_id',
$entity->
id());
return $query->
execute()->
fetchCol();
} /**
* {@inheritdoc}
*/
public function postPublish(WorkspaceInterface
$workspace) { @
trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use the \Drupal\workspaces\Event\WorkspacePostPublishEvent event instead. See https://www.drupal.org/node/3242573', E_USER_DEPRECATED
);
$this->
deleteAssociations($workspace->
id());
} /**
* {@inheritdoc}
*/
public function deleteAssociations($workspace_id = NULL,
$entity_type_id = NULL,
$entity_ids = NULL,
$revision_ids = NULL
) { if (!
$workspace_id && !
$entity_type_id) { throw new \
InvalidArgumentException('A workspace ID or an entity type ID must be provided.'
);
} $query =
$this->database->
delete(static::TABLE
);