yii\db\ActiveRecordInterface::primaryKey PHP Method

primaryKey() public static method

Note that an array should be returned even when the record only has a single primary key. For the primary key **value** see ActiveRecordInterface::getPrimaryKey instead.
public static primaryKey ( ) : string[]
return string[] the primary key name(s) for this AR class.
    public static function primaryKey();