You are here

protected function WSConnectorBase::findTokens in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WSConnectorBase.php \Drupal\wsdata\Plugin\WSConnectorBase::findTokens()

Internal function for finding tokens.

4 calls to WSConnectorBase::findTokens()
WSConnectorGraphQL::getReplacements in src/Plugin/WSConnector/WSConnectorGraphQL.php
Return an array of replacements.
WSConnectorLocalFile::getReplacements in src/Plugin/WSConnector/WSConnectorLocalFile.php
Return an array of replacements.
WSConnectorSimpleHTTP::getReplacements in src/Plugin/WSConnector/WSConnectorSimpleHTTP.php
Return an array of replacements.
WSConnectorSOAP::getReplacements in src/Plugin/WSConnector/WSConnectorSOAP.php
Return an array of replacements.

File

src/Plugin/WSConnectorBase.php, line 195

Class

WSConnectorBase
Base class for Wsconnector plugin plugins.

Namespace

Drupal\wsdata\Plugin

Code

protected function findTokens($string) {
  preg_match_all('/\\[([\\w:]+)\\]/', $string, $matches);
  return $matches[1];
}