You are here

protected function CslStyleForm::findStyleByUrlId in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/CslStyleForm.php \Drupal\bibcite\Form\CslStyleForm::findStyleByUrlId()

Find CSL styles by URL ID property.

Parameters

string $url_id: URL ID property.

Return value

array List of found CSL styles.

2 calls to CslStyleForm::findStyleByUrlId()
CslStyleForm::validateParent in src/Form/CslStyleForm.php
Validate existing of parent style.
CslStyleForm::validateUnique in src/Form/CslStyleForm.php
Validate unique URl ID property.

File

src/Form/CslStyleForm.php, line 121

Class

CslStyleForm
Add/edit form for bibcite_csl_style entity.

Namespace

Drupal\bibcite\Form

Code

protected function findStyleByUrlId($url_id) {
  $storage = $this->entityTypeManager
    ->getStorage('bibcite_csl_style');
  $result = $storage
    ->getQuery()
    ->condition('url_id', $url_id)
    ->execute();
  return $result;
}