Adldap\Laravel\Traits\ImportsUsers::isAttributeCallback PHP Method

isAttributeCallback() protected method

Returns true / false if the specified string is a callback for an attribute handler.
protected isAttributeCallback ( string $string ) : boolean
$string string
return boolean
    protected function isAttributeCallback($string)
    {
        $matches = preg_grep("/(\\w)@(\\w)/", explode("\n", $string));
        return count($matches) > 0;
    }