FieldtypeRepeaterMatrix::getMatrixTypeByName()

Return matrix type (integer) for given name, or boolean false if not found

Note: preferable to use RepeaterMatrixField::getMatrixTypeByName()

Usage

// basic usage
$bool = $fieldtypeRepeaterMatrix->getMatrixTypeByName(string $name);

// usage with all arguments
$bool = $fieldtypeRepeaterMatrix->getMatrixTypeByName(string $name, $field = null);

Arguments

NameType(s)Description
$namestring
$field (optional)Field null

Return value

bool int


FieldtypeRepeaterMatrix methods and properties

API reference based on ProcessWire core version 3.0.259