You are here

public function CerFieldChain::regex in Corresponding Entity References 7.3

Gets a regular expression to match field chain identifiers that this chain can reference, e.g. /^node:(page|article):/

File

includes/CerFieldChain.inc, line 24
Contains the CerFieldChain class.

Class

CerFieldChain
@file Contains the CerFieldChain class.

Code

public function regex() {
  $end = $this
    ->end();
  return '/^' . $end
    ->getTargetType() . ':(' . implode('|', $end
    ->getTargetBundles()) . '):/';
}